/*
  Copyright 2009 Smart Enterprise Solution Corp.
  Email: contact@ses.vn - Website: http://www.ses.vn
  KimNgan Project.
*/
using System;
using System.Data;
using System.Configuration;
using System.Collections;

using SES.CMS.DAL;
using SES.CMS.DO;
/// <summary>
/// Summary description for cmsCustomerBL
/// </summary>
namespace SES.CMS.BL 
{
    public class cmsCustomerBL 
    {
    	#region Private Variables
		cmsCustomerDAL objcmsCustomerDAL;
		#endregion
		
        #region Public Constructors
        public cmsCustomerBL()
        {
            //
            // TODO: Add constructor logic here
            //
            objcmsCustomerDAL=new cmsCustomerDAL();
        }
        #endregion       

        #region Public Methods
        public int Insert(cmsCustomerDO objcmsCustomerDO)
        {
            return objcmsCustomerDAL.Insert(objcmsCustomerDO);
        }

        public int Update(cmsCustomerDO objcmsCustomerDO)
        {
             return objcmsCustomerDAL.Update(objcmsCustomerDO);

        }

        public int Delete(cmsCustomerDO objcmsCustomerDO)
        {
             return objcmsCustomerDAL.Delete(objcmsCustomerDO);

        }

         public int DeleteAll()
        {
             return objcmsCustomerDAL.DeleteAll();
        }

        public cmsCustomerDO Select(cmsCustomerDO objcmsCustomerDO)
        {
            return objcmsCustomerDAL.Select(objcmsCustomerDO);
        }

        public cmsCustomerDO SelectByUsername(cmsCustomerDO objcmsCustomerDO)
        {
            return objcmsCustomerDAL.SelectByUsername(objcmsCustomerDO);
        }

        public ArrayList SelectAll1( )
        {
         return objcmsCustomerDAL.SelectAll1();
        }
        
        public DataTable SelectAll( )
        {
         return objcmsCustomerDAL.SelectAll();
        }
        public DataTable SelectLogin(string txtUsername, string txtPassword)
        {
            return objcmsCustomerDAL.SelectLogin(txtUsername, txtPassword);
        }
        public DataTable SelectRegistration(string txtUsername)
        {
            return objcmsCustomerDAL.SelectRegistration(txtUsername);
        }
        public DataTable SelectEmail(string txtEmail)
        {
            return objcmsCustomerDAL.SelectEmail(txtEmail);
        }
        public DataTable GetByIsVangLai(bool IsVangLai)
        {
            return objcmsCustomerDAL.GetByIsVangLai(IsVangLai);
        }
#endregion          
    
    }

}
